package com.s63.service;

import com.s63.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.CachePut;

import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author baomidou
 * @since 2023-10-21
 */
public interface IUserService extends IService<User> {

    Set<?> getScores();

    @CachePut(cacheNames = "demo", key = "#root.targetClass.name + '.getById.' + #entity.id")
    User update(User user);
}
